package com.song.mall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.song.common.utils.PageUtils;
import com.song.mall.member.entity.MemberEntity;
import com.song.mall.member.exception.PhoneExistException;
import com.song.mall.member.exception.UserNameExistException;
import com.song.mall.member.vo.MemberLoginVo;
import com.song.mall.member.vo.MemberRegistVo;
import com.song.mall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author Songchao
 * @email 2364043569@qq.com
 * @date 2021-08-07 22:00:51
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);


    void regist(MemberRegistVo vos);


    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUserNameUnique(String username) throws UserNameExistException;


    //用户登录
    MemberEntity login(MemberLoginVo vo);

    //社交登录
    MemberEntity login(SocialUser vo) throws Exception;
}

